//
//  API.m
//  WGFGlobalHouses
//
//  Created by welldone on 15/5/5.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "API.h"
#import "StringTool.h"




//#define ServiceHost @"http://192.168.2.233:8203/wgf-app-distribute/"
//
//#define ImgServiceHost @"http://192.168.2.233:8080/"
//
//#define PDFvideoServiceHost @"http://192.168.2.233:8081/"



#define ServiceHost @"http://mapi.waiguofang.com/wgf-app-distribute/"
//
#define ImgServiceHost @"http://img.wgfcdn.com/"
//
#define PDFvideoServiceHost @"http://files.wgfcdn.com/"




@implementation API



+(NSString*)urlMake2:(NSString*)urlBaby{
    
    return [NSString stringWithFormat:@"%@%@%@/",ServiceHost,urlBaby,@"73"];
}


+(NSString *)urlMake:(NSString *)urlBaby;
{
    return [NSString stringWithFormat:@"%@%@",ServiceHost,urlBaby];
}


+(NSString*)imgUrlMake:(NSString*)imgPath{
    
    if ([StringTool isBlankString:imgPath]) {
        return @"";
    }
    
    return [NSString stringWithFormat:@"%@%@",ImgServiceHost,imgPath];
}


+(NSString*)videoUrlMake:(NSString*)videoPath{
    
    if ([StringTool isBlankString:videoPath]) {
        return @"";
    }
    
    return [NSString stringWithFormat:@"%@%@",PDFvideoServiceHost,videoPath];
}

+(NSString*)pdfUrlMake:(NSString*)pdfPath{
    if([StringTool isBlankString:pdfPath]){
        return @"";
    }else{
     return [NSString stringWithFormat:@"%@%@",PDFvideoServiceHost,pdfPath];
    }
}


@end
